Minnow DB

By Andrew Owen
Released under the MIT license

Notes:

A very small module for reading and writing PISC terms from files

serial-mapping ( -- mapping:func )

Return a fuction that maps from types to serializers for said types

save-state ( path:string state:any -- state:any )


quote-safe ( str -- str )

Replace " with \" in the string, to keep it from breaking up on read

wrap-quotes ( str -- str )

Wrap a string in quotes

write-dict ( ctx dict -- )

Write a dict given a context

write-vec ( ctx vec -- )

write-int ( ctx int -- )

write-string ( ctx str -- )

write-double ( ctx double -- )

write-bool ( ctx bool -- )

copy-file-simple ( src dest -- )

<persisted-dict> ( path -- dict )

Create a dictionary that is persisted to the filesystem when values are stored to it.